home *** CD-ROM | disk | FTP | other *** search
/ Comix Games / Comix Games.iso / jetsons / jetsons.exe / jetsons.dxr / 00133.ls < prev    next >
Encoding:
Text File  |  1996-11-19  |  2.4 KB  |  47 lines

  1. on CheckForFlip
  2.   global theFirstShipChannel, theBackgroundVelocity
  3.   if (GetMovingRight() = 1) and (theBackgroundVelocity >= 0) then
  4.     if the memberNum of sprite theFirstShipChannel = the number of member "Ship Up 1" then
  5.       set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Up 1"
  6.     else
  7.       if the memberNum of sprite theFirstShipChannel = the number of member "Ship Up 2" then
  8.         set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Up 2"
  9.       else
  10.         if the memberNum of sprite theFirstShipChannel = the number of member "Ship Down 1" then
  11.           set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Down 1"
  12.         else
  13.           if the memberNum of sprite theFirstShipChannel = the number of member "Ship Down 2" then
  14.             set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Down 2"
  15.           else
  16.             if the memberNum of sprite theFirstShipChannel = the number of member "Ship Normal" then
  17.               set the memberNum of sprite theFirstShipChannel to the number of member "Left Ship Normal"
  18.             end if
  19.           end if
  20.         end if
  21.       end if
  22.     end if
  23.   else
  24.     if (GetMovingRight() = 0) and (theBackgroundVelocity <= 0) then
  25.       if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Up 1" then
  26.         set the memberNum of sprite theFirstShipChannel to the number of member "Ship Up 1"
  27.       else
  28.         if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Up 2" then
  29.           set the memberNum of sprite theFirstShipChannel to the number of member "Ship Up 2"
  30.         else
  31.           if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Down 1" then
  32.             set the memberNum of sprite theFirstShipChannel to the number of member "Ship Down 1"
  33.           else
  34.             if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Down 2" then
  35.               set the memberNum of sprite theFirstShipChannel to the number of member "Ship Down 2"
  36.             else
  37.               if the memberNum of sprite theFirstShipChannel = the number of member "Left Ship Normal" then
  38.                 set the memberNum of sprite theFirstShipChannel to the number of member "Ship Normal"
  39.               end if
  40.             end if
  41.           end if
  42.         end if
  43.       end if
  44.     end if
  45.   end if
  46. end
  47.